package models

// 资源信息的属性
type Video struct {
	Id string
	Title string
	Path string
	Url string
	IsRoot bool
	IsDir bool
	Size int64
	Pid string
  MimeType string
	ModAt string
	ApprovedAt string
	Status int // 0: normal, -1: todo, -2: remove, 1: star
	Views int
	Stars int
	Recommend bool // false: no, true: yes
}

func GetById( id string ) *Video{
	video := &Video{
		Id: id,
		Title: "Untitled",
	} 
	return video
}

func Create( one Video ) error{

	return nil
}

func Update( id string, cols map[string]string ) error {

	return nil
}

func Remove( id string ) error {

	return nil
}

